package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.domain.CommentSign;
import cn.wolfcode.trip.base.domain.CommentSign;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentSignMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommentSign sign);

    CommentSign selectByPrimaryKey(Long id);

    List<CommentSign> selectAll();

    int updateByPrimaryKey(CommentSign sign);

    CommentSign selectByCommentId(@Param("commentId") Long commentId, @Param("userId") Long userId);

    int queryGreatStatusCountByCommentId(Long commentId);

    int queryEnshrineStatusCountByCommentId(Long commentId);

}